using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ThuySan.Bussiness
{
	[Serializable]
	[Table("[dbo].[Image]")]
	public partial class Image
	{

		#region Properties

		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[Required]
		[Column("Id")]
		public System.Int32 Id { get; set; }

		[Column("ProductId")]
		public System.Int32? ProductId { get; set; }

		[Column("Description")]
		public System.String Description { get; set; }

		[Column("ImageName")]
		public System.String ImageName { get; set; }

		[Column("Priority")]
		public System.Int32? Priority { get; set; }

		[Column("IsBanner")]
		public System.Boolean? IsBanner { get; set; }

		#endregion

		#region Navigation

		[ForeignKey("ProductId")]
		public virtual Product Product { get; set; }

		#endregion

	}
}
